home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 15 / macformat_15.iso / C de cerca / Codewarrior Lite / MacOS Support / Headers / ANSI Headers / SIOUX.h < prev    next >
Text File  |  1995-12-18  |  2KB  |  74 lines

  1. /*
  2.  *    File:        SIOUX.h
  3.  *                ©1993-1995 metrowerks Inc. All rights reserved
  4.  *    Author:        Berardino E. Baratta
  5.  *
  6.  *    Content:    Interface file for SIOUX, containing all accessible entries ...
  7.  *
  8.  */
  9.  
  10. #ifndef __SIOUX__
  11. #define __SIOUX__
  12.  
  13. #pragma options align=mac68k
  14.  
  15. /*
  16.  *    Structure for holding the SIOUX specific settings ...
  17.  *    default values are:
  18.  *        {TRUE, TRUE, TRUE, FALSE, TRUE, FALSE, 4, 80, 24, 0, 0, monaco, 9, normal};
  19.  */
  20.  
  21. typedef struct tSIOUXSettings {
  22.     char             initializeTB,            /* Do we initialize the ToolBox ... */
  23.                     standalone,                /* Is SIOUX running in standalone mode ... */
  24.                     setupmenus,                /* Do we draw the SIOUX menus ... */
  25.                     autocloseonquit,        /* Do we close the SIOUX window on program termination ... */
  26.                     asktosaveonclose,        /* Do we offer to save on a close ... */
  27.                     showstatusline;            /* Do we draw the status line ... */
  28.  
  29.     short            tabspaces,                /* if non-zero, replace tabs with 'tabspaces' spaces ... */
  30.                     columns, rows,            /* The initial size of the SIOUX window ... */
  31.                     toppixel, leftpixel,    /* The topleft window position (in pixels) ... */
  32.                                             /*     (0,0 centers on main screen) ... */
  33.                     fontid, fontsize,
  34.                     fontface;                /* SIOUX's font, size and textface (i.e. bold, etc...) ... */
  35. } tSIOUXSettings;
  36.  
  37. extern tSIOUXSettings    SIOUXSettings;        /* SIOUX's settings structure ... */
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43. /*
  44.  *    extern short SIOUXHandleOneEvent(EventRecord *initialevent);
  45.  *
  46.  *    Tells SIOUX to handle one event.  If initialevent is NULL, then SIOUX
  47.  *    will poll the eventqueue for an event.  For applications which wish to
  48.  *    use an embedded SIOUX window, call this function at the beginning of
  49.  *    your eventloop, and pass it your current event ...
  50.  *
  51.  *    EventRecord *userevent:    The user's event from their call to Get/WaitNextEvent.
  52.  *    returns short:            Was the event handled by SIOUX?
  53.  */
  54.  
  55. extern short SIOUXHandleOneEvent(struct EventRecord *userevent);
  56.  
  57. /*
  58.  *    extern void SIOUXSetTitle(unsigned char title[256]);
  59.  *
  60.  *    Change the SIOUX window's title ...
  61.  *
  62.  *    unsigned char title[256]:    contains a pascal string.
  63.  */
  64.  
  65. extern void SIOUXSetTitle(unsigned char title[256]);
  66.  
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70.  
  71. #pragma options align=reset
  72.  
  73. #endif
  74.